home *** CD-ROM | disk | FTP | other *** search
Wrap
card_3061.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>3061</id> <filler1>0</filler1> <bitmap>BMAP_3724.pbm</bitmap> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2644</owner> <link rel="stylesheet" type="text/css" href="stylesheet_3112.css" /> <part> <id>1</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>200</left> <top>207</top> <right>343</right> <bottom>233</bottom> </rect> <style>roundrect</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Edit Stack Script</name> <script>on mouseUp edit the script of this stack end mouseUp</script> </part> <part> <id>2</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>412</left> <top>238</top> <right>475</right> <bottom>290</bottom> </rect> <style>transparent</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>12411</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Information</name> <script>on mouseUp go card "info" end mouseUp</script> </part> <name></name> <script></script> </card> card_3946.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>3946</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2644</owner> <link rel="stylesheet" type="text/css" href="stylesheet_3112.css" /> <part> <id>1</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>1</left> <top>1</top> <right>479</right> <bottom>273</bottom> </rect> <style>scrolling</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Geneva</font> <textSize>12</textSize> <textStyle>plain</textStyle> <textHeight>16</textHeight> <name></name> <script></script> </part> <part> <id>2</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>439</left> <top>275</top> <right>478</right> <bottom>294</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>6720</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name></name> <script>on mouseUp go card 1 end mouseUp</script> </part> <content> <layer>card</layer> <id>1</id> <text><span class="style2">GI Demo by Chuck Shotton, cshotton@oac.hsc.uth.tmc.edu</span><span class="style1"> This stack demonstrates how MacHTTP can pass arguments to HyperCard for processing. Specifically, this stack shows how to utilize the "CGI" (common gateway interface) AppleEvent sent by MacHTTP to applications. Edit the script of this stack and the "test_hc_form.html" file for more details. </span><span class="style2">Running the demo:</span><span class="style1"> 1. Place an alias to HyperCard 2.1 (or greater) in the same folder as MacHTTP. Name the alias "HyperCard.cgi". 2. Drag this stack over the HyperCard alias and drop it. 3. Run MacHTTP 1.3.1b8 or later. (if you want the POST method to work) 4. Access MacHTTP from your WWW client, using the URL: http://your.address/test_hc_form.html </span><span class="style2">Helpful hints</span><span class="style1"> • Use the path args (stuff after the "$" in a MacHTTP URL) to distinguish between multiple forms or searches, allowing HyperCard to handle multiple forms, etc. • Take advantage of HyperCard's "item delimiters" property to make parsing form args easier.</span></text> </content> <name>info</name> <script>on opencard set the scroll of card field 1 to 0 pass opencard end opencard</script> </card>